/**
 * Created by baiguiren on 2/14/17.
 */

let async = require('async');

let test = 0;
async.series([
  function (callback) {
    setTimeout(function () {
      test = 1;
      callback(null, null);
    }, 1500);
  },
  function (callback) {
    setTimeout(function () {
      console.log(test === 1);
      callback(null, null);
    }, 500);
    console.log('second func')
  }
], (err, res)=>{});